package com.bravo.friend.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author: Yuyong
 * @create: 2019-09-05 17:35
 **/

/**
 * 用户客户端
 */
@FeignClient("bravo_user")
public interface UserClient {

    /**
     * 增加粉丝数
     * @param userId
     * @param x
     */
    @PostMapping(value = "/user/incfans/{userId}/{x}")
    void incFansCount(@PathVariable("userId") String userId,@PathVariable("x") int x);

    @PostMapping(value = "/user/incfollow/{userId}/{x}")
    void incFollowCount(@PathVariable("userId") String userId,@PathVariable("x") int x);

}
